package model

import (
	"gopkg.in/mgo.v2/bson"
)

type User struct {
	Id_  bson.ObjectId `form:"id" binding:"required" bson:"_id"`
	Name string        `form:"name" binding:"required" bson:"name"`
	Addr Addr          `form:"addr" binding:"required" bson:"addr"`
}

type Addr struct {
	Country string `form:"country" binding:"required" bson:"country"`
	City    string `form:"city" binding:"required" bson:"city"`
}
